package com.dong.auth.runner;

import org.springframework.beans.BeansException;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public class ShopApplicationRunner implements ApplicationRunner, ApplicationContextAware {
    private ApplicationContext applicationContext ;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        Object springSecurityFilterChain = applicationContext.getBean("springSecurityFilterChain");
        System.out.println(springSecurityFilterChain);
    }

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
        this.applicationContext = applicationContext ;
    }
}
